package com.yanjiali.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* @Package: com.yanjiali.entity
* @Author: yanjiali
* @Created: 2025/4/23 21:33
*/
/**
    * 评论表
    */
@ApiModel(value="com-yanjiali-entity-Comment")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`comment`")
public class Comment {
    /**
     * 评论ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="评论ID")
    private Long id;

    /**
     * 父节点
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value="父节点")
    private Long parentId;

    /**
     * 文章id
     */
    @TableField(value = "article_id")
    @ApiModelProperty(value="文章id")
    private Long articleId;

    /**
     * 用户ID
     */
    @TableField(value = "uid")
    @ApiModelProperty(value="用户ID")
    private Long uid;

    /**
     * 地址
     */
    @TableField(value = "address")
    @ApiModelProperty(value="地址")
    private String address;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    @ApiModelProperty(value="评论内容")
    private String content;

    /**
     * 点赞数
     */
    @TableField(value = "likes")
    @ApiModelProperty(value="点赞数")
    private Integer likes;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;
}